package com.huilai.platform.country_platform.core;

import com.sun.org.apache.bcel.internal.generic.RETURN;

/**
 * 作者：洪霓
 * 日期：2023/2/18
 * 注释：
 */
public enum RecruitmentEnum {
    ZERO(0,"招聘中"),
    ONE(1,"已招聘");

    private Integer status;
    private String statusString;

    RecruitmentEnum(Integer status, String statusString){
        this.status = status;
        this.statusString = statusString;
    }

    public static String  getStringByStatus(Integer status) {
        for (RecruitmentEnum recruitmentEnum : RecruitmentEnum.values()) {
            if (recruitmentEnum.status.equals(status)) {
                return recruitmentEnum.statusString;
            }
        }
        return "null";
    }

}
